<?php
namespace app\index\model;

use think\Model;

class SystemConfig extends Model
{
    public function getDetail($where=[]){
        $detail = $this->where($where)->select();
        return array_column($detail->toArray(), 'value', 'name');
    }

}